package com.wzx.ptplatform.service;

import com.wzx.ptplatform.utils.PtplatformException;

/**
 * @author 紫煦桉
 */
public interface BaseService<T> {

    /**
     * 保存或修改 信息 saveOrEdit
     * @param param
     * @return
     * @throws PtplatformException
     */
    boolean saveOrEdit(T param) throws PtplatformException;

    /**
     * 通过 id 查学生信息 findById
     * @param id
     * @return
     * @throws PtplatformException
     */
    T findById(long id) throws PtplatformException;

    /**
     * 通过 id 删除学生信息 deleteById
     * @param id
     * @return
     * @throws PtplatformException
     */
    boolean deleteById(long id) throws PtplatformException;
}
